#pragma once

#include "IAutomat.h"
#include "IState.h"
#include "States.h"
#include "IScanner.h"

class AutomatVar1 : public IAutomat
{
    IState* currentState;
    IScanner* scanner;

public:
    AutomatVar1(IScanner* scanner);
    ~AutomatVar1(void);

    //inherited from IAutomat
    virtual void readChar(char c);
    virtual void setCurrentState(IState* state);
    virtual void mkToken(TType type, long long value);
    virtual void ungetChar(int times = 0);
    virtual void stop();
    virtual void error();
};

